package com.astar.exception;

/**
 * 自定义异常类  异常类的名字 最好是 通过类名可以直接看出当前异常是什么具体的异常 ，比如 NullPointException
 * Created by liuruiyan on 2019/3/27.
 */
public class CustomException extends Exception {

    private String message;


    public CustomException(String message) {
        super(message);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
